<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<form>
    <label for="number">请输入整数</label>
    <input type="number" min="1" id="number" name="num">
    <input type="submit" value="确认">
</form>
<table>
    <tbody>
    <%
        int num = Integer.parseInt(request.getParameter("num") != null ? request.getParameter("num") : "0");
        for (int i = 1; i <= num; i++) {
    %>
    <tr>
        <%
            for (int j = 1; j <= i; j++) {
        %>
        <td>
            <%=i%>*<%=j%>=<%=i * j%>
        </td>
        <%
            }
        %>
    </tr>
    <%
        }
    %>
    </tbody>
</table>
</body>
</html>
